def A():
    b=0
    for i in range(1,101):
        if(i%3==0):
            b+=1
            print(i)
    print(f'1-100之间能被3整除的整数有{b}个')
A()